<?php 
/**
 * 微语部分
 */
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
</head>
<body class="page">
<?php blog_head(); ?>
<section class="container">
	<div class="content-wrap">
	<div class="content" style="background-color:#FFF">
				<header class="article-header">
			    <h1 class="article-title"><a href="/t">微语</a></h1>
                </header>
<article class="article-content">
    <ol class="teamnewslist">
    <?php 
    foreach($tws as $val):
    $author = $user_cache[$val['author']]['name'];
    $avatar = empty($user_cache[$val['author']]['avatar']) ? 
                BLOG_URL . 'admin/views/images/avatar.jpg' : 
                BLOG_URL . $user_cache[$val['author']]['avatar'];
    $tid = (int)$val['id'];
    $img = empty($val['img']) ? "" : '<a title="查看图片" href="'.BLOG_URL.str_replace('thum-', '', $val['img']).'" target="_blank"><img style="border: 1px solid #EFEFEF;" src="'.BLOG_URL.$val['img'].'"/></a>';
    ?> 
    <li style="list-style-type:none">
    <b><?php echo $val['date'];?></b>
    <?php echo $val['t'].'<br/>'.$img;?>
    </li>
    <?php endforeach;?>
    		<div class="pagination">
			<div class="pagenav">
				<?php echo $pageurl;?>
			</div>
		</div>
    </ol>
</article>
</div></div>
<?php include View::getView('side3');?>
﻿</section>
<?php include View::getView('footer');?>